home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2000 June / Internet Magazine June 2000.iso / pc / software / windows / building / wirefusion / html / multilayer / bob11.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-01-03  |  793 b   |  75 lines

  1. import java.awt.Event;
  2. import java.io.DataInputStream;
  3.  
  4. public class bob11 extends bob {
  5.    public boolean value;
  6.  
  7.    public bob11(boolean var1) {
  8.       this.value = var1;
  9.    }
  10.  
  11.    public bob11() {
  12.    }
  13.  
  14.    // $FF: renamed from: rd (java.io.DataInputStream) void
  15.    public void method_0(DataInputStream var1) {
  16.       try {
  17.          this.value = var1.readBoolean();
  18.       } catch (Exception var3) {
  19.       }
  20.  
  21.    }
  22.  
  23.    // $FF: renamed from: he (java.awt.Event) void
  24.    public void method_1(Event var1) {
  25.       boolean var2 = var1.arg instanceof bob11 ? ((bob11)var1.arg).value : false;
  26.       switch (var1.id) {
  27.          case 1:
  28.             if (var2 != this.value) {
  29.                ((bob)this).ce(this, 3);
  30.             }
  31.  
  32.             this.value = var2;
  33.             ((bob)this).ce(this, 2);
  34.             if (this.value) {
  35.                ((bob)this).ce(this, 5);
  36.             } else {
  37.                ((bob)this).ce(this, 6);
  38.             }
  39.  
  40.             return;
  41.          case 2:
  42.             ((bob)this).ce(this, 1);
  43.             if (this.value) {
  44.                ((bob)this).ce(this, 5);
  45.             } else {
  46.                ((bob)this).ce(this, 6);
  47.             }
  48.  
  49.             return;
  50.          case 3:
  51.             var2 = !this.value;
  52.             break;
  53.          case 4:
  54.             var2 &= this.value;
  55.             break;
  56.          case 5:
  57.             var2 |= this.value;
  58.             break;
  59.          case 6:
  60.             var2 ^= this.value;
  61.             break;
  62.          default:
  63.             return;
  64.       }
  65.  
  66.       ((bob)this).ce(new bob11(var2), 4);
  67.       if (var2) {
  68.          ((bob)this).ce(new bob11(var2), 5);
  69.       } else {
  70.          ((bob)this).ce(new bob11(var2), 6);
  71.       }
  72.  
  73.    }
  74. }
  75.